.class public Lt4j/data/SimpleStatus;
.super Lt4j/TBlogResponse;
.source "SimpleStatus.java"


# instance fields
.field private create_at:Ljava/util/Date;

.field private id:J

.field private source:Ljava/lang/String;

.field private text:Ljava/lang/String;

.field private truncated:Z


# direct methods
.method public constructor <init>(Lt4j/http/Response;)V
    .locals 1
    .parameter "res"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lt4j/TBlogException;
        }
    .end annotation

    .prologue
    .line 23
    invoke-direct {p0}, Lt4j/TBlogResponse;-><init>()V

    .line 24
    invoke-virtual {p1}, Lt4j/http/Response;->asJSONObject()Lt4j/org/json/JSONObject;

    move-result-object v0

    invoke-direct {p0, v0}, Lt4j/data/SimpleStatus;->init(Lt4j/org/json/JSONObject;)V

    .line 25
    return-void
.end method

.method public constructor <init>(Lt4j/org/json/JSONObject;)V
    .locals 0
    .parameter "json"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lt4j/TBlogException;
        }
    .end annotation

    .prologue
    .line 19
    invoke-direct {p0}, Lt4j/TBlogResponse;-><init>()V

    .line 20
    invoke-direct {p0, p1}, Lt4j/data/SimpleStatus;->init(Lt4j/org/json/JSONObject;)V

    .line 21
    return-void
.end method

.method private init(Lt4j/org/json/JSONObject;)V
    .locals 3
    .parameter "json"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lt4j/TBlogException;
        }
    .end annotation

    .prologue
    .line 29
    :try_start_0
    const-string v1, "id"

    invoke-virtual {p1, v1}, Lt4j/org/json/JSONObject;->getLong(Ljava/lang/String;)J

    move-result-wide v1

    iput-wide v1, p0, Lt4j/data/SimpleStatus;->id:J

    .line 30
    const-string v1, "source"

    invoke-virtual {p1, v1}, Lt4j/org/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lt4j/data/SimpleStatus;->source:Ljava/lang/String;

    .line 31
    const-string v1, "text"

    invoke-virtual {p1, v1}, Lt4j/org/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lt4j/data/SimpleStatus;->text:Ljava/lang/String;

    .line 32
    const-string v1, "created_at"

    invoke-virtual {p1, v1}, Lt4j/org/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    const-string v2, "EEE MMM dd HH:mm:ss z yyyy"

    invoke-static {v1, v2}, Lt4j/data/SimpleStatus;->parseDate(Ljava/lang/String;Ljava/lang/String;)Ljava/util/Date;

    move-result-object v1

    iput-object v1, p0, Lt4j/data/SimpleStatus;->create_at:Ljava/util/Date;

    .line 33
    const-string v1, "truncated"

    invoke-virtual {p1, v1}, Lt4j/org/json/JSONObject;->getBoolean(Ljava/lang/String;)Z

    move-result v1

    iput-boolean v1, p0, Lt4j/data/SimpleStatus;->truncated:Z
    :try_end_0
    .catch Lt4j/org/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    .line 37
    :goto_0
    return-void

    .line 34
    :catch_0
    move-exception v0

    .line 35
    .local v0, e:Lt4j/org/json/JSONException;
    invoke-virtual {v0}, Lt4j/org/json/JSONException;->printStackTrace()V

    goto :goto_0
.end method


# virtual methods
.method public getCreate_at()Ljava/util/Date;
    .locals 1

    .prologue
    .line 56
    iget-object v0, p0, Lt4j/data/SimpleStatus;->create_at:Ljava/util/Date;

    return-object v0
.end method

.method public getId()J
    .locals 2

    .prologue
    .line 40
    iget-wide v0, p0, Lt4j/data/SimpleStatus;->id:J

    return-wide v0
.end method

.method public getSource()Ljava/lang/String;
    .locals 1

    .prologue
    .line 48
    iget-object v0, p0, Lt4j/data/SimpleStatus;->source:Ljava/lang/String;

    return-object v0
.end method

.method public getText()Ljava/lang/String;
    .locals 1

    .prologue
    .line 72
    iget-object v0, p0, Lt4j/data/SimpleStatus;->text:Ljava/lang/String;

    return-object v0
.end method

.method public isTruncated()Z
    .locals 1

    .prologue
    .line 64
    iget-boolean v0, p0, Lt4j/data/SimpleStatus;->truncated:Z

    return v0
.end method

.method public setCreate_at(Ljava/util/Date;)V
    .locals 0
    .parameter "create_at"

    .prologue
    .line 60
    iput-object p1, p0, Lt4j/data/SimpleStatus;->create_at:Ljava/util/Date;

    .line 61
    return-void
.end method

.method public setId(J)V
    .locals 0
    .parameter "id"

    .prologue
    .line 44
    iput-wide p1, p0, Lt4j/data/SimpleStatus;->id:J

    .line 45
    return-void
.end method

.method public setSource(Ljava/lang/String;)V
    .locals 0
    .parameter "source"

    .prologue
    .line 52
    iput-object p1, p0, Lt4j/data/SimpleStatus;->source:Ljava/lang/String;

    .line 53
    return-void
.end method

.method public setText(Ljava/lang/String;)V
    .locals 0
    .parameter "text"

    .prologue
    .line 76
    iput-object p1, p0, Lt4j/data/SimpleStatus;->text:Ljava/lang/String;

    .line 77
    return-void
.end method

.method public setTruncated(Z)V
    .locals 0
    .parameter "truncated"

    .prologue
    .line 68
    iput-boolean p1, p0, Lt4j/data/SimpleStatus;->truncated:Z

    .line 69
    return-void
.end method
